package avicit.bdp.dds.api.service;

import avicit.bdp.common.base.BaseService;
import avicit.bdp.dds.dao.entity.ProcessDefinitionHistory;
import avicit.bdp.dds.dao.mapper.ProcessDefinitionHistoryMapper;
import com.github.pagehelper.Page;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * @author mayanj
 */
@Service
public class ProcessDefinitionHistoryService extends BaseService<ProcessDefinitionHistoryMapper, ProcessDefinitionHistory> {

    private static final Logger logger = LoggerFactory.getLogger(ProcessDefinitionHistoryService.class);


    public Integer getNewVersionNo(String processDefinitionId) {
        return this.mapper.getNewVersionNo(processDefinitionId);
    }

    public Page<ProcessDefinitionHistory> getDefinitionHistoryList(String processDefinitionId) {
        return this.mapper.getDefinitionHistoryList(processDefinitionId);
    }

    public void deleteProcessDefinitionHistory(String processDefinitionId) {
        this.mapper.deleteProcessDefinitionHistory(processDefinitionId);
    }
}

